load("@rules_jvm_external//:defs.bzl", "artifact")
load("//java:defs.bzl", "JUNIT5_DEPS", "java_selenium_test_suite")
load("//java:version.bzl", "TOOLS_JAVA_VERSION")

java_selenium_test_suite(
    name = "large-tests",
    size = "large",
    srcs = glob(["*Test.java"]),
    browsers = [
        "chrome",
    ],
    data = [
        "//third_party/chrome_ext:backspace.crx",
    ],
    javacopts = [
        "--release",
        TOOLS_JAVA_VERSION,
    ],
    tags = [
        "selenium-remote",
    ],
    deps = [
        "//java/src/org/openqa/selenium/chrome",
        "//java/src/org/openqa/selenium/json",
        "//java/src/org/openqa/selenium/remote",
        "//java/src/org/openqa/selenium/support",
        "//java/test/org/openqa/selenium:helpers",
        "//java/test/org/openqa/selenium/build",
        "//java/test/org/openqa/selenium/testing:annotations",
        "//java/test/org/openqa/selenium/testing:test-base",
        "//java/test/org/openqa/selenium/testing/drivers",
        artifact("org.junit.jupiter:junit-jupiter-api"),
        artifact("org.assertj:assertj-core"),
        artifact("org.mockito:mockito-core"),
    ] + JUNIT5_DEPS,
)
